import http from '../utils/http.js'

//获取民宿列表
let mock={
    "status":200,
    "data":{
        "total":1,
        "list":[
            {
                "homestay_id":0,
                "homestay_img":"http://localhost:5500/images/detail/thumbnail_img_1.jpg",
                "homestay_name":"cj的民宿",
                "homestay_area":"成都",
                "homestay_type":"1-1",
                "homestay_price":300
            }
        ]
    }
}
export function homestay_list_api(data) {
    return http({
        url:'/api/room/index',
        method:'post',
        data
    })
}
//获取民宿详情
// export function homestay_detail_api({homestay_id}) {
//     return http({
//         url:'/mock/homestay_detail.json?homestay_id='+homestay_id,
//         method:'get'
//     })
// }
